package com.hw.protocol.tool.model.entity.hw;

import lombok.Data;

import java.io.Serializable;

/**
 * @author : lihy
 * @date : 2023/10/19 10:23
 * description: 智能调压箱
 */
@Data
public class RegulatorBox implements Serializable {

    private static final long serialVersionUID = -3564358732675801059L;
    /**
     * 设备编号
     */
    private String devSerial;

    /**
     * 通道号
     */
    private String chunnelSerial;

    /**
     * 为0值时，表示未读取到数据
     */
    private int meterType;

    /**
     * 入口压力
     * 0:no device;0xffffffff:no data
     */
    private float inPress;

    /**
     * 出口压力
     * 0:no device;0xffffffff:no data
     */
    private float outPress;

    /**
     * 温度
     * 0:no device;0xffffffff:no data
     */
    private float temperature;

    /**
     * 压差1
     * 0:no device;0xffffffff:no data
     */
    private float differentialPressure1;

    /**
     * 压差2
     * 0:no device;0xffffffff:no data
     */
    private float differentialPressure2;

    /**
     * 泄漏
     * 250:no data;251:need calibration;252:no device
     */
    private float leakage;

    /**
     * 阀门开度1
     * 252:no device
     */
    private char valveOpening1;

    /**
     * 阀门开度2
     * 252:no device
     */
    private char valveOpening2;

    /**
     * 切断阀1
     * 0:open;1:close
     */
    private char valveSsv1;

    /**
     * 切断阀2
     * 0:open;1:close
     */
    private char valveSsv2;

    /**
     * 门禁1
     * 0:open;1:close
     */
    private char doorSignal1;

    /**
     * 门禁2
     * 0:open;1:close
     */
    private char doorSignal2;

    /**
     * ttxx cbvv   c:0 - 电池电压正常 1:欠压;flag[2]:signal.
     */
    private byte[] flag;
}
